
/**
 * Class representing the statistics from estimating the cardinality of an RAExpression.
 * @author Jonathan
 *
 */
public class RAStatistics {

	/**
	 * Basic constructor taking cardinality and cost.
	 * @param cardinality
	 * @param cost
	 */
	public RAStatistics(long cardinality, long cost)
	{
		this.cardinality = cardinality;
		this.cost = cost;
	}

	/**
	 * Expected output cardinality of an RAExpression.
	 */
	private long cardinality;
	
	/**
	 * Cumulative cost of executing an RAExpression.
	 */
	private long cost;
	
	public long getCardinality()
	{
		return this.cardinality;
	}
	
	public long getCost()
	{
		return this.cost;
	}
	
	public String toString()
	{
		return "[" + cardinality + ", " + cost + "]";
	}
}
